//YIH-----------------------------------------------------
//FOOD CLASS(LETTERS or FIsh or what.. ) Used for LaSalle Thesis
//DATE CREATED: 1/26/2k13
//NOTES:  
//-----------------------------------------------------
#pragma once
#include "interfaces.h"


class Food : public IRenderUpdate
{

public:

	enum CATEGORY
	{
		None = 0,
		EASY,
		MODERATE,
		HARD
	};
	
	Food(void);
	virtual ~Food( void );

	virtual void Render(HDC bbDC, HDC spriteDC, int isVisible);
	virtual void Update(RECT Collider, float dt, int Visible);
	
	int GetWidth(){ return mWidth;};
	int GetHeight(){ return mHeight;};

	void Load(Bitmap *FoodBitmap);
	void Eat(){mAlive = false;};
	bool IsEaten(){ return !mAlive;};
	void SetStartPos(int Food_x, int Food_y){ mPosX = Food_x; mPosY = Food_y; HackedPosX = Food_x;HackedPosY = Food_y; };
	RECT GetCurrentRect();
	RECT rect;
	//Animation *m_pFood;
	bool mAlive;
	CATEGORY m_Category;
	
	Bitmap *m_pFood;
	
		
	float mPosX;
	float mPosY;
	
	int mWidth;
	int mHeight;

	float speed;
	int mStartPosX;
	int mStartPosY;

	//bool IsEaten;
	
	RECT FoodRect;

	int mRandPosY;
	int HackedPosX;
	int HackedPosY;

	bool mIsVisible;
	int mVisibility;

};

